package cn.stylefeng.guns.modular.business.frequency.orderextrafee.mapper;

import cn.stylefeng.guns.modular.business.frequency.ordersub.model.result.PkgOrderExtraFee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.stylefeng.guns.modular.business.frequency.orderextrafee.entity.OrderExtraFee;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单其他额外费用表 Mapper 接口
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
public interface OrderExtraFeeMapper extends BaseMapper<OrderExtraFee> {

    BigDecimal getUnPayOtherFeeByOrderId(@Param("orderId") Long orderId);

    PkgOrderExtraFee getPkgOrderExtraFeeById(@Param("id") Long relationId);

    List<OrderExtraFee> getPaymentExtraListByOrderId(@Param("orderId") String orderId);
}